package com.dianxin.smartpark.service.access.impl;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.device.api.device.SmartDeviceUserRpcService;
import com.dianxin.device.api.device.dto.SmartDeviceUserDTO;
import com.dianxin.device.api.device.qo.SmartDeviceUserRpcQO;
import com.dianxin.smartpark.service.access.SmartParkDeviceUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author wangkai
 * @Date 2021/7/29 10:20 上午
 */
@Service
public class SmartParkDeviceUserServiceImpl implements SmartParkDeviceUserService {
    @Resource
    private SmartDeviceUserRpcService smartDeviceUserRpcService;


    @Override
    public CommonResponseBody<Boolean> saveDeviceUser(SmartDeviceUserDTO vo) throws Exception {
        return smartDeviceUserRpcService.saveDeviceUser(vo);
    }

    @Override
    public CommonResponseBody<Boolean> updateDeviceUser(SmartDeviceUserDTO vo) throws Exception {
        return smartDeviceUserRpcService.updateDeviceUser(vo);
    }

    @Override
    public CommonResponseBody<Boolean> deleteDeviceUser(SmartDeviceUserDTO vo) throws Exception {
        return smartDeviceUserRpcService.deleteDeviceUser(vo);
    }

    @Override
    public CommonResponseBody<List<SmartDeviceUserDTO>> getDevicesUsers(SmartDeviceUserRpcQO qo) throws Exception {
        return smartDeviceUserRpcService.getDevicesUsers(qo);
    }
}
